package com.anycl.spring.web.dao;

import com.anycl.spring.web.entity.Spittle;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;

@Component
public class SpittleRepositoryImpl implements SpittleRepository {
    private List<Spittle> spittleList = Arrays.asList(
            new Spittle("你好", new Date(System.currentTimeMillis())),
            new Spittle("你好", new Date(System.currentTimeMillis())),
            new Spittle("你好", new Date(System.currentTimeMillis())),
            new Spittle("你好", new Date(System.currentTimeMillis())),
            new Spittle("你好", new Date(System.currentTimeMillis())),
            new Spittle("你好", new Date(System.currentTimeMillis())));

    @Override
    public List<Spittle> findAll() {
        return spittleList;
    }

    @Override
    public List<Spittle> findSpittles(long max, int count) {
        return null;
    }
}
